package day0308;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;

public class OSWDemo {
    public static void main(String[] args) throws IOException {

        FileOutputStream fos =new FileOutputStream("note.txt");
        OutputStreamWriter osw =new OutputStreamWriter(fos);
        osw.write("梁子红");
        osw.close();
        System.out.println("完毕");

    }
}
